package superkigav.shared.rightsmanagement;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class UserGroup {
	private Integer group;
	
	public UserGroup() {
		group = 0;
	}
	
	public UserGroup(Integer p_group) {
		group = p_group;
	}
	public Integer getGroup() {
		return group;
	}
	public void setGroup(Integer group) {
		this.group = group;
	}
	public String toString() {
		return group.toString();
	}
	public boolean equals(Object o) {
		if(this.getClass() != o.getClass()) {
			return false;
		}
		if(!this.getGroup().equals(((UserGroup) o).getGroup())) {
			return false;
		}
		return true;
	}
}
